package zhao.tx.eecs.Tools;

import android.content.Context;

import zhao.tx.eecs.JsonModel.UserModel;


/**
 * Created by ishishuji on 14-9-2.
 */

public class UserFileDeal {



    private static final String FILE_NAME = "myUser.xlz";

    public static boolean isExists ( Context context ) {
        return BaseFileDeal.isFileExists ( context,FILE_NAME );
    }

    public static void saveUser ( Context context , UserModel userModel ) {
        BaseFileDeal.saveBaseFile ( context,FILE_NAME,userModel );
    }

    public static UserModel getUser ( Context context ) {
        return BaseFileDeal.getBaseFile ( context, FILE_NAME );
    }

    public static void deleteUser ( Context context ) {
        BaseFileDeal.deleteBaseFile ( context,FILE_NAME );
    }

}
